<template>
  <el-form v-model="thisquestion">
    <el-form-item style="margin: 3px auto;">
      <span v-show="thisquestion.bidati" style="color:red;font-size: 20px;float:left;line-height: 2">* </span>
      <span style="font-weight: bold;font-size:17px;line-height: 1.3;">标题：</span>
      <el-input v-model="thisquestion.title" :value="thisquestion.title" type="textarea" :autosize="{ minRows: 1}"
                style="width: 90%;" ></el-input>
    </el-form-item>

      <el-form-item style="margin: 3px auto;width: 70%;display: inline-block">
        <span style="font-size:17px;line-height: 1.3;">说明：</span>
        <el-input v-model="thisquestion.note" :value="thisquestion.note" type="textarea" :autosize="{ minRows: 1}"
        style="width: 90%;"
        ></el-input>
      </el-form-item>
      <el-form-item  @click.native.prevent="changeTuRe" style="margin: 3px 20px 3px 10px;width: 20%;display: inline-block">
<!--        <span style="font-size:17px;line-height: 1.3;"></span>-->
        <el-checkbox
            v-model="thisquestion.bidati"
        >是否必填
        </el-checkbox>
      </el-form-item>

  </el-form>
</template>
<script>
export default {
  data(){
    return{
    }
  },
  props:{
    thisquestion:Object,
  },
  computed:{
  },
  methods:{
    changeTuRe:function (){
      if(this.thisquestion.bidati){
        this.$set(this.thisquestion,'bidati',false);
      }else{
        this.$set(this.thisquestion,'bidati',true);
      }

    }
  },
}
</script>